<?php
/**
 * Created by PhpStorm.
 * User: luxuewen_gz
 * Date: 2018/12/29
 * Time: 8:50
 */

namespace app\admin\validate;


use think\Validate;

class Permission extends Validate
{
    protected $rule = [
        'role_id'   =>  'require|integer',
    ];

    protected $message = [
        'role_id.require'       =>  '缺少角色ID',
        'role_id.integer'       =>  '角色ID必须是整数'
    ];
    protected $scene = [
        'roleEdit'      =>  ['role_id'],
    ];

}